$(function(){

				// Accordion
				$("#accordion").accordion({ header: "h3" });

				// Tabs
				$('#tabs').tabs();
                                
                                var lista = [
                                    "abc","aaaa","aaaaa","4","5"
                                ]
                                $( "#tags" ).autocomplete({
                                source: lista
                                });
                                

				// Dialog
				$('#dialog').dialog({
					autoOpen: false,
					width: 600,
					buttons: {
						"Ok": function() {
							$(this).dialog("close");
						},
						"Cancel": function() {
							$(this).dialog("close");
						}
					}
				});

				// Dialog Link
				$('#dialog_link').click(function(){
					$('#dialog').dialog('open');
					return false;
				});

				// Datepicker
				$('#datepicker').datepicker({
					inline: true
				});

				// Slider
				
				
				$( "#CreditosPrimeiroSemestreSlider" ).slider({
			range: "min",
			value: 10,
			min: 0,
			max: 50,
			slide: function( event, ui ) {
				$( "#amount" ).val(ui.value );
			}
		});
		$( "#amount" ).val($( "#CreditosPrimeiroSemestreSlider" ).slider( "value" ) );

				// Progressbar
				$("#progressbar").progressbar({
					value: 20
				});

				//hover states on the static widgets
				$('#dialog_link, ul#icons li').hover(
					function() { $(this).addClass('ui-state-hover'); },
					function() { $(this).removeClass('ui-state-hover'); }
				);

			});